package com.study.beans;

public class JobEntity {
    private Integer id;
    //任务名
    private String name;
    //组名
    private String group;
    //执行任务的cron表达式
    private String cron;
    //执行jar包的参数
    private String parameter;
    //说明
    private String description;
    //执行jar包的vm参数
    private String vmParam;
    //jar包路径
    private String jarPath;
    //状态
    private String status;
    
    public JobEntity() {
		super();
		// TODO Auto-generated constructor stub
	}

	public JobEntity(String name, String group, String cron, String parameter, String description,
			String vmParam, String jarPath, String status) {
		super();
		this.name = name;
		this.group = group;
		this.cron = cron;
		this.parameter = parameter;
		this.description = description;
		this.vmParam = vmParam;
		this.jarPath = jarPath;
		this.status = status;
	}



	public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getGroup() {
        return group;
    }

    public void setGroup(String group) {
        this.group = group == null ? null : group.trim();
    }

    public String getCron() {
        return cron;
    }

    public void setCron(String cron) {
        this.cron = cron == null ? null : cron.trim();
    }

    public String getParameter() {
        return parameter;
    }

    public void setParameter(String parameter) {
        this.parameter = parameter == null ? null : parameter.trim();
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description == null ? null : description.trim();
    }

    public String getVmParam() {
        return vmParam;
    }

    public void setVmParam(String vmParam) {
        this.vmParam = vmParam == null ? null : vmParam.trim();
    }

    public String getJarPath() {
        return jarPath;
    }

    public void setJarPath(String jarPath) {
        this.jarPath = jarPath == null ? null : jarPath.trim();
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

	@Override
	public String toString() {
		return "JobEntity [id=" + id + ", name=" + name + ", group=" + group + ", cron=" + cron + ", parameter="
				+ parameter + ", description=" + description + ", vmParam=" + vmParam + ", jarPath=" + jarPath
				+ ", status=" + status + "]";
	}
    
}